﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_InUyNhiemChi : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboTinhThanh")]
        private ComboBox _CboTinhThanh;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("CmdTimDoiTuong")]
        private Button _CmdTimDoiTuong;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label10")]
        private Label _Label10;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("TxtDienGiai")]
        private TextBox _TxtDienGiai;
        [AccessedThroughProperty("TxtNganHang")]
        private TextBox _TxtNganHang;
        [AccessedThroughProperty("TxtNgayCap")]
        private TextBox _TxtNgayCap;
        [AccessedThroughProperty("TxtNoiCap")]
        private TextBox _TxtNoiCap;
        [AccessedThroughProperty("TxtSoCMND")]
        private TextBox _TxtSoCMND;
        [AccessedThroughProperty("TxtSoTaiKhoan")]
        private TextBox _TxtSoTaiKhoan;
        [AccessedThroughProperty("TxtSoTaiKhoanKhachHang")]
        private TextBox _TxtSoTaiKhoanKhachHang;
        [AccessedThroughProperty("TxtSoTienNT")]
        private C1NumericEdit _TxtSoTienNT;
        [AccessedThroughProperty("TxtTenDonViThuHuong")]
        private TextBox _TxtTenDonViThuHuong;
        [AccessedThroughProperty("TxtTenNganHangKhach")]
        private TextBox _TxtTenNganHangKhach;
        [AccessedThroughProperty("TxtTenTaiKhoan")]
        private TextBox _TxtTenTaiKhoan;
        public string cFrmKhoa;
        private IContainer components;
        private clsChungTuQuy objCTQ;
        private clsDMDoiTuong objDT;

        public Frm_InUyNhiemChi()
        {
            base.Load += new EventHandler(this.Frm_InUyNhiemChi_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmKhoa = "";
            this.objCTQ = new clsChungTuQuy();
            this.objDT = new clsDMDoiTuong();
            this.InitializeComponent();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            this.PrintReport();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_InUyNhiemChi_Load(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() == "")
            {
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboTinhThanh, modGeneral.ListDanhMuc.TinhThanh, true, "", "");
                this.objCTQ.Load(this.cFrmKhoa);
                this.objDT.Load(this.objCTQ.KhoaDoiTuong);
                this.TxtNganHang.Text = this.objDT.TenViet;
                this.TxtTenTaiKhoan.Text = modGeneral.H_ACCOUNTNAME;
                this.TxtSoTaiKhoan.Text = modGeneral.H_ACCOUNTNUMBERUSD;
                string pKhoa = Conversions.ToString(this.GetDonViThuHuong(this.cFrmKhoa));
                this.objDT.Load(pKhoa);
                this.TxtTenDonViThuHuong.Text = this.objDT.TenViet;
                this.TxtSoTaiKhoanKhachHang.Text = "";
                this.TxtSoCMND.Text = "";
                this.CboTinhThanh.SelectedValue = this.objDT.KhoaTinhThanh;
                this.TxtDienGiai.Text = this.objCTQ.DienGiai;
                this.TxtSoTienNT.Value = this.objCTQ.SoTien;
            }
        }

        public object GetDonViThuHuong(string pKhoa)
        {
            string commandText = "SELECT Top 1 KhoaDoiTuong FROM GL_ChungTuQuyChiTiet WHERE KhoaChungTu = '" + pKhoa + "' AND Rtrim(KhoaDoiTuong) <> ''";
            return LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(DBHelper.ExecuteScalar(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0])), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_InUyNhiemChi));
            this.GroupBox1 = new GroupBox();
            this.TxtSoTaiKhoan = new TextBox();
            this.Label2 = new Label();
            this.TxtTenTaiKhoan = new TextBox();
            this.Label1 = new Label();
            this.TxtNganHang = new TextBox();
            this.Label18 = new Label();
            this.GroupBox2 = new GroupBox();
            this.CmdTimDoiTuong = new Button();
            this.TxtDienGiai = new TextBox();
            this.Label10 = new Label();
            this.Label9 = new Label();
            this.TxtSoTienNT = new C1NumericEdit();
            this.CboTinhThanh = new ComboBox();
            this.Label14 = new Label();
            this.TxtTenNganHangKhach = new TextBox();
            this.Label8 = new Label();
            this.TxtNoiCap = new TextBox();
            this.Label7 = new Label();
            this.TxtNgayCap = new TextBox();
            this.Label6 = new Label();
            this.TxtSoCMND = new TextBox();
            this.Label5 = new Label();
            this.TxtSoTaiKhoanKhachHang = new TextBox();
            this.Label4 = new Label();
            this.TxtTenDonViThuHuong = new TextBox();
            this.Label3 = new Label();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.GroupBox1.SuspendLayout();
            this.GroupBox2.SuspendLayout();
            ((ISupportInitialize) this.TxtSoTienNT).BeginInit();
            this.SuspendLayout();
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.TxtSoTaiKhoan);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.TxtTenTaiKhoan);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.TxtNganHang);
            this.GroupBox1.Controls.Add(this.Label18);
            Point point = new Point(9, 6);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            Size size = new Size(0x217, 0x71);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Đơn vị trả tiền";
            point = new Point(100, 0x52);
            this.TxtSoTaiKhoan.Location = point;
            this.TxtSoTaiKhoan.Name = "TxtSoTaiKhoan";
            size = new Size(0x1ad, 20);
            this.TxtSoTaiKhoan.Size = size;
            this.TxtSoTaiKhoan.TabIndex = 0x60;
            this.Label2.AutoEllipsis = true;
            this.Label2.AutoSize = true;
            point = new Point(0x11, 0x55);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            this.Label2.RightToLeft = RightToLeft.No;
            size = new Size(0x43, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x61;
            this.Label2.Text = "Số t\x00e0i khoản";
            this.Label2.TextAlign = ContentAlignment.TopRight;
            point = new Point(100, 0x38);
            this.TxtTenTaiKhoan.Location = point;
            this.TxtTenTaiKhoan.Name = "TxtTenTaiKhoan";
            size = new Size(0x1ad, 20);
            this.TxtTenTaiKhoan.Size = size;
            this.TxtTenTaiKhoan.TabIndex = 0x5e;
            this.Label1.AutoEllipsis = true;
            this.Label1.AutoSize = true;
            point = new Point(0x11, 0x3b);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            this.Label1.RightToLeft = RightToLeft.No;
            size = new Size(0x49, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x5f;
            this.Label1.Text = "T\x00ean t\x00e0i khoản";
            this.Label1.TextAlign = ContentAlignment.TopRight;
            point = new Point(100, 30);
            this.TxtNganHang.Location = point;
            this.TxtNganHang.Name = "TxtNganHang";
            size = new Size(0x1ad, 20);
            this.TxtNganHang.Size = size;
            this.TxtNganHang.TabIndex = 0x5c;
            this.Label18.AutoEllipsis = true;
            this.Label18.AutoSize = true;
            point = new Point(0x11, 0x21);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            this.Label18.RightToLeft = RightToLeft.No;
            size = new Size(60, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x5d;
            this.Label18.Text = "Ng\x00e2n h\x00e0ng";
            this.Label18.TextAlign = ContentAlignment.TopRight;
            this.GroupBox2.BackColor = Color.Transparent;
            this.GroupBox2.Controls.Add(this.CmdTimDoiTuong);
            this.GroupBox2.Controls.Add(this.TxtDienGiai);
            this.GroupBox2.Controls.Add(this.Label10);
            this.GroupBox2.Controls.Add(this.Label9);
            this.GroupBox2.Controls.Add(this.TxtSoTienNT);
            this.GroupBox2.Controls.Add(this.CboTinhThanh);
            this.GroupBox2.Controls.Add(this.Label14);
            this.GroupBox2.Controls.Add(this.TxtTenNganHangKhach);
            this.GroupBox2.Controls.Add(this.Label8);
            this.GroupBox2.Controls.Add(this.TxtNoiCap);
            this.GroupBox2.Controls.Add(this.Label7);
            this.GroupBox2.Controls.Add(this.TxtNgayCap);
            this.GroupBox2.Controls.Add(this.Label6);
            this.GroupBox2.Controls.Add(this.TxtSoCMND);
            this.GroupBox2.Controls.Add(this.Label5);
            this.GroupBox2.Controls.Add(this.TxtSoTaiKhoanKhachHang);
            this.GroupBox2.Controls.Add(this.Label4);
            this.GroupBox2.Controls.Add(this.TxtTenDonViThuHuong);
            this.GroupBox2.Controls.Add(this.Label3);
            point = new Point(9, 0x7d);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x217, 0xbf);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 1;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Đơn vị thụ hưởng";
            point = new Point(0x1fa, 0x1b);
            this.CmdTimDoiTuong.Location = point;
            this.CmdTimDoiTuong.Name = "CmdTimDoiTuong";
            size = new Size(0x18, 0x16);
            this.CmdTimDoiTuong.Size = size;
            this.CmdTimDoiTuong.TabIndex = 0xa7;
            this.CmdTimDoiTuong.Text = "...";
            this.CmdTimDoiTuong.UseVisualStyleBackColor = true;
            point = new Point(100, 0x9f);
            this.TxtDienGiai.Location = point;
            this.TxtDienGiai.Name = "TxtDienGiai";
            size = new Size(0x1ad, 20);
            this.TxtDienGiai.Size = size;
            this.TxtDienGiai.TabIndex = 0xa5;
            this.Label10.AutoEllipsis = true;
            this.Label10.AutoSize = true;
            point = new Point(0x10, 0xa2);
            this.Label10.Location = point;
            this.Label10.Name = "Label10";
            this.Label10.RightToLeft = RightToLeft.No;
            size = new Size(0x30, 13);
            this.Label10.Size = size;
            this.Label10.TabIndex = 0xa6;
            this.Label10.Text = "Diễn giải";
            this.Label10.TextAlign = ContentAlignment.TopRight;
            this.Label9.AutoEllipsis = true;
            this.Label9.AutoSize = true;
            point = new Point(0x14d, 0x88);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            this.Label9.RightToLeft = RightToLeft.No;
            size = new Size(40, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0xa4;
            this.Label9.Text = "Số tiền";
            this.Label9.TextAlign = ContentAlignment.TopRight;
            this.TxtSoTienNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoTienNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x17f, 0x85);
            this.TxtSoTienNT.Location = point;
            this.TxtSoTienNT.Name = "TxtSoTienNT";
            Padding padding = new Padding(1);
            this.TxtSoTienNT.Padding = padding;
            size = new Size(0x92, 20);
            this.TxtSoTienNT.Size = size;
            this.TxtSoTienNT.TabIndex = 0xa3;
            this.TxtSoTienNT.Tag = null;
            this.TxtSoTienNT.TextAlign = HorizontalAlignment.Right;
            this.TxtSoTienNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoTienNT.VisualStyle = VisualStyle.Office2007Blue;
            this.TxtSoTienNT.VisualStyleBaseStyle = VisualStyle.Office2007Blue;
            this.CboTinhThanh.FormattingEnabled = true;
            point = new Point(100, 0x84);
            this.CboTinhThanh.Location = point;
            this.CboTinhThanh.Name = "CboTinhThanh";
            size = new Size(0xe3, 0x15);
            this.CboTinhThanh.Size = size;
            this.CboTinhThanh.TabIndex = 0xa1;
            this.Label14.AutoSize = true;
            point = new Point(0x10, 0x87);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            size = new Size(0x3a, 13);
            this.Label14.Size = size;
            this.Label14.TabIndex = 0xa2;
            this.Label14.Text = "Tỉnh th\x00e0nh";
            point = new Point(100, 0x6a);
            this.TxtTenNganHangKhach.Location = point;
            this.TxtTenNganHangKhach.Name = "TxtTenNganHangKhach";
            size = new Size(0x1ad, 20);
            this.TxtTenNganHangKhach.Size = size;
            this.TxtTenNganHangKhach.TabIndex = 0x68;
            this.Label8.AutoEllipsis = true;
            this.Label8.AutoSize = true;
            point = new Point(0x10, 0x6d);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            this.Label8.RightToLeft = RightToLeft.No;
            size = new Size(60, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x69;
            this.Label8.Text = "Ng\x00e2n h\x00e0ng";
            this.Label8.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x17f, 0x51);
            this.TxtNoiCap.Location = point;
            this.TxtNoiCap.Name = "TxtNoiCap";
            size = new Size(0x92, 20);
            this.TxtNoiCap.Size = size;
            this.TxtNoiCap.TabIndex = 0x66;
            this.Label7.AutoEllipsis = true;
            this.Label7.AutoSize = true;
            point = new Point(0x14d, 0x54);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            this.Label7.RightToLeft = RightToLeft.No;
            size = new Size(0x2c, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x67;
            this.Label7.Text = "Nơi cấp";
            this.Label7.TextAlign = ContentAlignment.TopRight;
            point = new Point(0xf2, 0x51);
            this.TxtNgayCap.Location = point;
            this.TxtNgayCap.Name = "TxtNgayCap";
            size = new Size(0x55, 20);
            this.TxtNgayCap.Size = size;
            this.TxtNgayCap.TabIndex = 100;
            this.Label6.AutoEllipsis = true;
            this.Label6.AutoSize = true;
            point = new Point(0xbc, 0x54);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            this.Label6.RightToLeft = RightToLeft.No;
            size = new Size(0x35, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x65;
            this.Label6.Text = "Ng\x00e0y cấp";
            this.Label6.TextAlign = ContentAlignment.TopRight;
            point = new Point(100, 80);
            this.TxtSoCMND.Location = point;
            this.TxtSoCMND.Name = "TxtSoCMND";
            size = new Size(0x55, 20);
            this.TxtSoCMND.Size = size;
            this.TxtSoCMND.TabIndex = 0x62;
            this.Label5.AutoEllipsis = true;
            this.Label5.AutoSize = true;
            point = new Point(0x10, 0x53);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            this.Label5.RightToLeft = RightToLeft.No;
            size = new Size(0x57, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x63;
            this.Label5.Text = "CMND/Hộ chiếu";
            this.Label5.TextAlign = ContentAlignment.TopRight;
            point = new Point(100, 0x36);
            this.TxtSoTaiKhoanKhachHang.Location = point;
            this.TxtSoTaiKhoanKhachHang.Name = "TxtSoTaiKhoanKhachHang";
            size = new Size(0x1ad, 20);
            this.TxtSoTaiKhoanKhachHang.Size = size;
            this.TxtSoTaiKhoanKhachHang.TabIndex = 0x60;
            this.Label4.AutoEllipsis = true;
            this.Label4.AutoSize = true;
            point = new Point(0x10, 0x39);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            this.Label4.RightToLeft = RightToLeft.No;
            size = new Size(0x43, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x61;
            this.Label4.Text = "Số t\x00e0i khoản";
            this.Label4.TextAlign = ContentAlignment.TopRight;
            point = new Point(100, 0x1c);
            this.TxtTenDonViThuHuong.Location = point;
            this.TxtTenDonViThuHuong.Name = "TxtTenDonViThuHuong";
            size = new Size(0x194, 20);
            this.TxtTenDonViThuHuong.Size = size;
            this.TxtTenDonViThuHuong.TabIndex = 0x5e;
            this.Label3.AutoEllipsis = true;
            this.Label3.AutoSize = true;
            point = new Point(0x10, 0x1f);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            this.Label3.RightToLeft = RightToLeft.No;
            size = new Size(0x3b, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x5f;
            this.Label3.Text = "T\x00ean đơn vị";
            this.Label3.TextAlign = ContentAlignment.TopRight;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x1d3, 0x144);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 13;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x180, 0x144);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 12;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x228, 0x160);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox2);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_InUyNhiemChi";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "IN UY NHIEM CHI";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            ((ISupportInitialize) this.TxtSoTienNT).EndInit();
            this.ResumeLayout(false);
        }

        public void PrintReport()
        {
            clsChungTuQuy quy = new clsChungTuQuy();
            double num2 = 0.0;
            new clsDMDoiTuong().Load(quy.KhoaDoiTuong);
            num2 = Convert.ToDouble(quy.SoTien);
            double num = Conversions.ToDouble(this.TxtSoTienNT.Value);
            Rpt_UyNhiemChi chi = new Rpt_UyNhiemChi();
            try
            {
                if (modGeneral.H_LANGUAGE == "VIET")
                {
                    chi.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                }
                else
                {
                    chi.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                }
                chi.SetParameterValue(1, this.TxtSoTaiKhoan.Text.Trim());
                chi.SetParameterValue(2, this.TxtNganHang.Text);
                chi.SetParameterValue(3, this.TxtTenDonViThuHuong.Text);
                chi.SetParameterValue(4, this.TxtSoTaiKhoanKhachHang.Text);
                chi.SetParameterValue(5, this.TxtSoCMND.Text);
                chi.SetParameterValue(6, this.TxtNgayCap.Text);
                chi.SetParameterValue(7, this.TxtNoiCap.Text);
                chi.SetParameterValue(8, this.TxtTenNganHangKhach.Text);
                chi.SetParameterValue(9, this.CboTinhThanh.Text);
                chi.SetParameterValue(10, "                                                         " + ReportModule.Number2Char(Conversions.ToString(num), ".") + " (" + this.objCTQ.LoaiTien.Trim() + ")");
                chi.SetParameterValue(11, num);
                chi.SetParameterValue(12, "                                 " + this.TxtDienGiai.Text);
                chi.SetParameterValue(13, LVYModule.Char2Date(this.objCTQ.NgayChungTu));
                MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = chi;
                MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                if (Form.ActiveForm != null)
                {
                    Form.ActiveForm.Cursor = Cursors.Default;
                }
                MyProject.Forms.Frm_ViewReport.ShowDialog();
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                ProjectData.ClearProjectError();
            }
        }

        internal virtual ComboBox CboTinhThanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboTinhThanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboTinhThanh = value;
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdCancel = value;
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual Button CmdTimDoiTuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTimDoiTuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdTimDoiTuong = value;
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label10 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual TextBox TxtDienGiai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiai = value;
            }
        }

        internal virtual TextBox TxtNganHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNganHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNganHang = value;
            }
        }

        internal virtual TextBox TxtNgayCap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayCap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayCap = value;
            }
        }

        internal virtual TextBox TxtNoiCap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNoiCap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNoiCap = value;
            }
        }

        internal virtual TextBox TxtSoCMND
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoCMND;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoCMND = value;
            }
        }

        internal virtual TextBox TxtSoTaiKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoTaiKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoTaiKhoan = value;
            }
        }

        internal virtual TextBox TxtSoTaiKhoanKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoTaiKhoanKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoTaiKhoanKhachHang = value;
            }
        }

        internal virtual C1NumericEdit TxtSoTienNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoTienNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoTienNT = value;
            }
        }

        internal virtual TextBox TxtTenDonViThuHuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenDonViThuHuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenDonViThuHuong = value;
            }
        }

        internal virtual TextBox TxtTenNganHangKhach
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenNganHangKhach;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenNganHangKhach = value;
            }
        }

        internal virtual TextBox TxtTenTaiKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenTaiKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenTaiKhoan = value;
            }
        }
    }
}

